package top.huhuiyu.springboot3.p2301.service.api;

import top.huhuiyu.springboot3.p2301.entity.api.NewsDetailResult;
import top.huhuiyu.springboot3.p2301.entity.api.NewsListResult;
import top.huhuiyu.springboot3.p2301.entity.api.NewsTypeResult;

public interface NewsDataService {
    String NEWS_TEXT = "<p>%s</p>";
    String NEWS_IMG = "<img src=\"%s\" />";

    NewsTypeResult queryNewsType();

    NewsListResult queryNewsList(Integer typeId, Integer page);

    NewsDetailResult queryNewsDetail(String newsId);

    int makeNewsData();
}
